package com.csii.ldap.entity;

import lombok.Data;
import org.springframework.ldap.odm.annotations.DnAttribute;
import org.springframework.ldap.odm.annotations.Entry;
import org.springframework.ldap.odm.annotations.Id;

import javax.naming.Name;

/**
 * @author danjiawei
 * @desc ldap组织单元
 * @date 2020/10/21
 */
@Entry(objectClasses = {"organizationalUnit", "top"}, base = "ou=Departments")
@Data
public class OrganizationalUnit {

    @Id
    private Name dn;

    @DnAttribute(value = "ou", index = 1)
    private String ou;
}
